package online.liulei.design.mode.main;

import online.liulei.design.mode.Beverage;
import online.liulei.design.mode.DarkRoastComponent;
import online.liulei.design.mode.MochaDecorator;
import online.liulei.design.mode.WhipDecorator;

public class Main {

    public static void main(String[] args) {
        Beverage darkRoastWithMochaAndWhip = new WhipDecorator(new MochaDecorator(new DarkRoastComponent()));
        System.out.println(darkRoastWithMochaAndWhip.cost());
        System.out.println(darkRoastWithMochaAndWhip.description());
    }
}
